package com.ternnetwork.wechat.util;

import com.ternnetwork.wechat.model.auth.AccessToken;

public class WechatQyAgentUtil {
	
	
	public static String get_list_url="https://qyapi.weixin.qq.com/cgi-bin/agent/list?access_token=ACCESS_TOKEN";
 	

	
	 public static String list(String corpId,String corpSecret){
			AccessToken at = AccessTokenUtil.getQyAccessToken(corpId, corpSecret);
			String url = get_list_url.replace("ACCESS_TOKEN", at.getAccess_token());
			String respJson = HttpConnectionUtil.httpRequest(url, "POST",null);
			return respJson;
     }
}
